package skeleton_wearebatman;

import java.io.BufferedReader;

public class Main {

    /**
     * Írd ide a neved, ha sikerült belőnöd a Subversiont:
     * Torma Gábor
     * Madarassy Zoltán
     * Nagy Péter
     * Németh Gergő
     */
    
    public static void main(String[] args) {
        System.out.println("Running Skeleton...\n");
        int choose = 0;
        do {            
            try {
                // Főmenü kiiratása
                System.out.println("Choose a test:");
                System.out.println("---------------------------------------------------------------------");
                System.out.println(" 1. Simple Circuit Test (Source, Wire, Inverter, Led)");
                System.out.println(" 2. Simplest Circuit Test (Source, Wire, Led)");
                System.out.println(" 3. Feedback Test (Source, Wire, OR Gate, Inverter, Led)");
                System.out.println(" 4. Advanced Circuit Test (Source, Wire, Inverter, AND/OR Gate, Led)");
                System.out.println("---------------------------------------------------------------------");
                System.out.println(" 0. Exit");
                System.out.print("\nChosen test: ");
                BufferedReader keyboard = new BufferedReader(new java.io.InputStreamReader(System.in));
                choose = Integer.parseInt(keyboard.readLine());
                if(choose < 5 && choose > 0) {
                    System.out.println("Running chosen test: "+choose+"\n");
                    // Új teszt indítása
                    Circuit circuit = new Circuit("circuit",choose);
                } else
                {
                    System.out.println("Please choose between 0-4!");
                }
            } catch (Exception ex) {
                System.out.println("Please choose a number!");                
            }
        } while (choose != 0);
    }
}
